<style>
    #tree1 ul + ul {
        border-top: 1px dashed #dddddd;
    }

    .layui-row {
        margin-top: 16px;
    }

    .layui-form-item {
        width: 510px;
    }
</style>
<div class="layui-row">
    <div class="layui-col-12">
        <form class="layui-form">
            <div class="layui-form-item">
                <label class="layui-form-label">菜单名</label>
                <div class="layui-input-block">
                    <input type="text" name="spName" required lay-verify="required" placeholder="请输入标题"
                           autocomplete="off"class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">URL</label>
                <div class="layui-input-block">
                    <input type="text" name="spUri" required lay-verify="required" placeholder="请输入URL"
                           autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">资源类型</label>
                <div class="layui-input-block">
                    <select name="spType" lay-verify="required">
                        <option value="1">模块</option>
                        <option value="2">菜单</option>
                    </select>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">上级菜单</label>
                <div class="layui-input-block">
                    <input type="text" id="treeSelect" lay-filter="treeSelect" class="layui-input">
                    <input type="hidden" id="spParentId" name="spParentId">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">序号</label>
                <div class="layui-input-block">
                    <input type="text" name="spOrderd" required lay-verify="required" placeholder="请输入序号"
                           autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="form">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>